/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 搜索容器样式 */
.search-container {
  width: 600px;
  margin: 0 auto;
}

/* 搜索框样式 */
.search-box {
  display: flex;
  top: 10px;
}

.search-box input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 22px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: #ff4400; /* 闲鱼橙色主色调 */
}

.search-box button {
  width: 80px;
  height: 44px;
  background-color: #ff4400;
  color: white;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #e03c00;
}

/* 搜索下拉面板样式 */
.search-dropdown {
  display: flex;
  margin-top: 10px;
  margin-bottom: -140px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}

/* 下拉面板分区样式 */
.dropdown-section {
  margin-bottom: 16px;
}

.dropdown-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  font-weight: normal;
}

/* 历史搜索列表样式 */
.history-list, .recommend-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-item, .recommend-item {
  padding: 6px 12px;
  background-color: #f5f5f5;
  border-radius: 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s;
}

.history-item:hover {
  background-color: #eee;
}

.recommend-item {
  background-color: #fff8f5; /* 推荐项浅橙色背景 */
  color: #ff4400;
}

.recommend-item:hover {
  background-color: #ffebe0;
}

/* 搜索结果页面样式 */
.result-page {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: -40px;
  background: white;
}

.back-btn {
  display: inline-block;
  color: #ff4400;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}

.result-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
  font-weight: 500;
}

.result-tip {
  font-size: 14px;
  color: #666;
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
